# If-Then-Else logic

If-Then-Else logic allows an expression to make a decision. The format of the If-Then-Else logic is:

`If statement Then value1 Else value2`

- If the statement is true the expression returns value1.
- If the statement is false the expression returns value2.

You can create even more complex expressions by nesting If-Then-Else statements.

Tip: | The Else portion of the statement is required.

## See also

About expressions

Nested If-Then-Else logic

Example: If-Then-Else logic